package com.meila.cms.util;

import com.alibaba.fastjson.JSONObject;

 
public class ElFunctions {

	public static String toJsonString(Object obj){
        // 将java对象转换为json对象
		 String str  = JSONObject.toJSONString(obj).replaceAll("\"", "'");
/*		 System.out.println(JSONObject.toJSONString(obj));
		 System.out.println(str);*/
        return str;
    }
	
}
